<?php

use yii\db\Migration;

/**
 * Handles the creation of table `{{%contract_purpose}}`.
 */
class m221113_144752_create_contract_purpose_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->createTable('{{%contract_purpose}}', [
            'id' => $this->primaryKey(),
            'title' => $this->string(),
        ]);
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->dropTable('{{%contract_purpose}}');
    }
}
